<?php

class isAuthorizedFilter extends CFilter
{
	public function preFilter($filterChain)
	{
		if(Yii::app()->user->isGuest)
			Yii::app()->request->redirect(Yii::app()->createUrl('site/login'));
		else
			return true;
	}

	public function postFilter($filterChain)
	{

	}
}
